<div class="layui-tab layui-tab-brief">
	<div class="layui-btn-group">
		<a href="__APP__/{$Request.controller}/add.html" class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-add-1"></i>添加</a>
		<a href="__APP__/{$Request.controller}/del.html" class="layui-btn layui-btn-primary confirm ajax"><i class="layui-icon layui-icon-close"></i>删除</a>
	</div>
	<div class="page-filter fr">
		<form class="layui-form layui-form-pane" action="__APP__/{$Request.controller}/index.html" method="get">
		<div class="layui-form-item">
			<div class="layui-input-inline">
				<input type="text" name="date" placeholder="请选择时间范围" class="layui-input" value="{:input('date')}" id="range">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="keywords" placeholder="请输入关键词搜索" class="layui-input" value="{:input('keywords')}">
				<button class="layui-icon">&#xe615;</button>
			</div>
		</div>
		</form>
	</div>
	<div class="layui-form">
		{Data:list keywords="request" module="Loan" date="request" order="date asc"}
		<table class="layui-table" lay-even="" lay-skin="row">
			<colgroup><col width="50"></colgroup>
			<thead>
				<tr>
					<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
					<th>类型</th>
					<th>关联</th>
					<th>日期</th>
					<th>金额</th>
					<th>备注</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="var.list" id="vo"}
				<tr>
					<td><input type="checkbox" name="ids[{$vo.id}]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary"></td>
		            <td>{$vo.module}</td>
					<td><a data-href="__APP__/{$vo.module}/edit/id/{$vo.pid}.html" class="popen">{$vo.pid|GTC=$vo['module'],'realname'}</a></td>
		            <td>{$vo.date|date='Y-m-d'}</td>
		            <td>{$vo.money}</td>
					<td>{$vo.remark}</td>
					<td>{Html:Switch name="status" value="$vo['status']" lay-filter="switchStatus" options="正常|关闭" data-href="__APP__/Profit/attr/field/status/ids/｛$vo.id｝.html"/}</td>
		            <td>
						<div class="layui-btn-group">
							<a data-href="__APP__/{$Request.controller}/edit/id/{$vo.id}.html" data-button="true" class="layui-btn layui-btn-primary layui-btn-sm popen" title="编辑"><i class="layui-icon layui-icon-edit"></i></a>
							<a href="__APP__/{$Request.controller}/del/id/{$vo.id}.html" class="layui-btn layui-btn-primary layui-btn-sm" title="删除"><i class="layui-icon layui-icon-close"></i></a>
						</div>
					</td>
				</tr>
				{/volist}
			</tbody>
		</table>
		{$var.page|raw}
		{/Data:list}
	</div>
</div>
<script type="text/javascript">
	layui.use('laydate',function(){
		layui.laydate.render({ 
		  elem: '#range'
		  ,type: 'month'
		});
		 
	})
</script>